package Controller.member;

import Controller.BaseHttpServlet;
import Services.WebService;
import Entity.User;

public class MemberBaseServlet extends BaseHttpServlet{
    @Override
    protected boolean checkPrivilege(WebService webServices){
        User user = webServices.getCurrentUser();
        if(user != null){
        	return user.getRole().equals("ROLE_ADMIN") || user.getRole().equals("ROLE_USER");
        }
        
        return false;
    }
}
